package com.sgb.kjwl.model.entity;

import com.google.gson.annotations.SerializedName;
import com.sgb.kjwl.model.entity.user.SkuItemAttrEntity;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MaterialDetailEntity {
    @SerializedName("id")
    private String id;
    @SerializedName("cartTitle")
    private String cartTitle;
    @SerializedName("price")
    private String price;
    @SerializedName("updateTime")
    private String updateTime;
    @SerializedName("tax")
    private String tax;
    @SerializedName("brandName")
    private String brandName;
    @SerializedName("unit")
    private String unit;
    @SerializedName("storageName")
    private String storageName;
    @SerializedName("areaName")
    private String areaName;
    @SerializedName("params")
    private List<ParamsEntity> params;
    @SerializedName("itemDesc")
    private String itemDesc;
    @SerializedName("shopId")
    private String shopId;
    @SerializedName("images")
    private List<String> images;
    @SerializedName("status")
    private String status;
    @SerializedName("videoId")
    private String videoId;
    @SerializedName("itemDetail")
    private String itemDetail;
    @SerializedName("createTime")
    private String createTime;
    @SerializedName("playUrl")
    private String playUrl;
    @SerializedName("itemAttr")
    private List<SkuItemAttrEntity> itemAttr;

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCartTitle() {
        return cartTitle;
    }

    public void setCartTitle(String cartTitle) {
        this.cartTitle = cartTitle;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUpdateTime() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        long lt = new Long(updateTime);
        Date date = new Date(lt);
        return simpleDateFormat.format(date);
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getTax() {
        return tax;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getStorageName() {
        return storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public List<ParamsEntity> getParams() {
        return params;
    }

    public void setParams(List<ParamsEntity> params) {
        this.params = params;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getItemDetail() {
        return itemDetail;
    }

    public void setItemDetail(String itemDetail) {
        this.itemDetail = itemDetail;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPlayUrl() {
        return playUrl;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    public List<SkuItemAttrEntity> getItemAttr() {
        return itemAttr;
    }

    public void setItemAttr(List<SkuItemAttrEntity> itemAttr) {
        this.itemAttr = itemAttr;
    }
}
